package com.ygqh.baby.po;

import java.io.Serializable;
import java.util.Date;

public class YgStock implements Serializable{
	/** 
	*/ 
	private static final long serialVersionUID = 1L;

	private Long id;

	private String productCode;

	private String skuCode;

	private Long amount;

	private Long realAmount;

	private Boolean isSync;

	private Date createTime;

	private Date updateTime;

	private String updateBy;

	private String status;

	private String remark;

	// -----------------------
	private YgSku sku;
	private YgProduct product;

	public YgStock() {
		super();
	}

	public YgStock(String skuCode, Long amount, Date createTime, Date updateTime, String updateBy) {
		super();
		this.skuCode = skuCode;
		this.amount = amount;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.updateBy = updateBy;
	}

	public YgStock(String skuCode, Long amount, Long realAmount, Date updateTime, String updateBy) {
		super();
		this.skuCode = skuCode;
		this.amount = amount;
		this.updateTime = updateTime;
		this.updateBy = updateBy;
		this.realAmount = realAmount;
	}

	public String getProductCode() {
		return productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Boolean getIsSync() {
		return isSync;
	}

	public void setIsSync(Boolean isSync) {
		this.isSync = isSync;
	}

	public Long getRealAmount() {
		return realAmount;
	}

	public void setRealAmount(Long realAmount) {
		this.realAmount = realAmount;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public YgSku getSku() {
		return sku;
	}

	public void setSku(YgSku sku) {
		this.sku = sku;
	}

	public YgProduct getProduct() {
		return product;
	}

	public void setProduct(YgProduct product) {
		this.product = product;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getSkuCode() {
		return skuCode;
	}

	public void setSkuCode(String skuCode) {
		this.skuCode = skuCode == null ? null : skuCode.trim();
	}

	public Long getAmount() {
		return amount;
	}

	public void setAmount(Long amount) {
		this.amount = amount;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "YgStock{" +
				"id=" + id +
				", productCode='" + productCode + '\'' +
				", skuCode='" + skuCode + '\'' +
				", amount=" + amount +
				", realAmount=" + realAmount +
				", isSync=" + isSync +
				", createTime=" + createTime +
				", updateTime=" + updateTime +
				", updateBy='" + updateBy + '\'' +
				", status='" + status + '\'' +
				", remark='" + remark + '\'' +
				'}';
	}
}